package com.xingfly.school.course.ohs.local.appservices;

import com.xingfly.school.course.domain.Course;
import com.xingfly.school.course.domain.CourseDomainService;
import com.xingfly.school.course.ohs.local.pl.response.CourseStudentInfoResponse;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by SuperS on 2020/3/28.
 *
 * @author SuperS
 */
@Service
public class CourseAppService {

    @Resource
    private CourseDomainService courseDomainService;

    public List<CourseStudentInfoResponse> findStudentsByCourseId(Long courseId) {
        return courseDomainService.findStudentsByCourseId(courseId);
    }

    public List<Course> findAllById(List<Long> ids) {
        return courseDomainService.findAllById(ids);
    }

    public Course findById(Long courseId) {
        return courseDomainService.findById(courseId);
    }


}
